﻿using Domain.Engine.Commands;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Domain.Engine.Tests
{
  [TestClass]
  public class Domain_engine_hello_tests : DomainTestBase
  {
    [TestMethod]
    public void Say_hello_command_should_set_name_on_model()
    {
      var command = new SayHelloCommand {Name = "Test"};
      CommandBus.Send(command);
      ReadModel.Name.Should().Be("Test");
    }
  }
}